package yazan.com.pdacollector_android.network;

import java.util.HashMap;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import yazan.com.pdacollector_android.model.OrderBrowser;
import yazan.com.pdacollector_android.model.OrderInfo;

public interface Api {
    @POST("/User/Getserver")
    @Headers({"Content-Type:application/json"})
    Call<HashMap> login(@Body HashMap hashMap);

    @POST("/Order/GetOrderBills")
    @Headers({"Content-Type:application/json"})
    Call<OrderInfo> getOrderInfo(@Body HashMap hashMap);

    @POST("/Order/GetOrganization")
    @Headers({"Content-Type:application/json"})
    Call<OrderBrowser> getOrderBrowser(@Body HashMap hashMap);


    @POST("/Order/PostOutOrder")
    @Headers({"Content-Type:application/json"})
    Call<HashMap> postOrder(@Body HashMap list);

}
